<?php
    require_once './clases/BaseDatos.php';
?>
<html>
    <head>
        <title>foro</title>
        <link href="CSS/styles.css" type="text/css" rel="stylesheet" media="screen">
    </head>
    <body>
        <div class="menu">
            
                <span>  Index  </span>
                <span>  Tu espacio  </span>
                <span>  Descargas  </span>
                <span>  Busqueda  </span>
                <span>  info  </span>
        </div>
        <div class="body">
        <?php
          $sql = new BaseDatos();
          $sql->select_db();//selecciono mi base de datos
          $sql->query("SELECT nom FROM foro WHERE valid='1'");
        while($row = $sql->fetch_assoc())
        {
            echo $row["nom"];
        }
            ?>
        </div>
    </body>
</html>